package com.simple.business.domain.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.zuihou.base.entity.SuperEntity;
import com.simple.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @desc
 * @Author Simple
 * @Date 2024/7/30 14:22
 **/
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("c_baby")
@ApiModel(value = "Baby", description = "孩子")
@AllArgsConstructor
public class Baby extends SuperEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("姓名")
    @TableField(value = "baby_name")
    private String babyName;

    @ApiModelProperty("乳名")
    @TableField(value = "baby_nick_name")
    private String babyNickName;

    @ApiModelProperty("性别")
    @TableField(value = "baby_sex")
    private String babySex;

    @ApiModelProperty("生日")
    @TableField(value = "birthday")
    @Excel(name = "生日")
    private LocalDateTime birthday;

    @ApiModelProperty("性别")
    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty("是否删除")
    @TableField(value = "deleted")
    @Excel(name = "是否删除")
    private Boolean deleted;
}
